package com.sfzd5.noipinfo;

import java.util.List;

//{"status": "ok", "msg": "\u53d6\u5f97\u6570\u636e", "data": [{"ps": [{"id": 276, "submission": "\u5b8c\u6210", "title": "A+B Problem"}, {"id": 377, "submission": "\u5b8c\u6210", "title": "\u5c0f\u7389\u4e70\u6587\u5177"}, {"id": 381, "submission": "\u5b8c\u6210", "title": "\u5c0f\u9c7c\u7684\u6e38\u6cf3\u65f6\u95f4"}], "h": "\u6570\u636e\u7c7b\u578b\u4e0e\u7b97\u672f\u8fd0\u7b97"}, {"ps": [{"id": 275, "submission": "\u672a\u5b8c\u6210", "title": "\u8d85\u7ea7\u739b\u4e3d\u6e38\u620f"}, {"id": 902, "submission": "\u5b8c\u6210", "title": "Hello world!"}], "h": "\u7b2c1\u8bfe\u4f5c\u4e1a"}]}
public class SubmissionResult extends BaseResult {

    public class Submission{
        public int id;
        public String submission;
        public String title;

        public boolean isAccepted(){
            return submission.equals("完成");
        }

        @Override
        public String toString() {
            return title+"("+submission+")";
        }
    }

    public class HomeWork{
        public List<Submission> ps;
        public String h;

        @Override
        public String toString() {
            return h;
        }
    }

    List<HomeWork> data;
}
